WPS Office.apk(点击下载) / anl.java


package defpackage;

/* renamed from: anl  reason: default package */
public final class anl extends aov {
    public static final apf aRN;
    public static final anl aRO;
    public static final anl aRP = aRN.s("", "");
    public String aRQ;
    private int hashCode;
    public String uri;

    static {
        apf apf = new apf();
        aRN = apf;
        aRO = apf.s("xml", "http://www.w3.org/XML/1998/namespace");
    }

    public anl(String str, String str2) {
        this.aRQ = str == null ? "" : str;
        this.uri = str2 == null ? "" : str2;
    }

    @Override // defpackage.anm, defpackage.aov
    public final String Ik() {
        return this.uri;
    }

    @Override // defpackage.anm
    public final ano Io() {
        return ano.NAMESPACE_NODE;
    }

    @Override // defpackage.anm
    public final String Ip() {
        StringBuffer stringBuffer = new StringBuffer(10);
        String str = this.aRQ;
        if (str == null || str.length() <= 0) {
            stringBuffer.append("xmlns=\"");
        } else {
            stringBuffer.append("xmlns:");
            stringBuffer.append(str);
            stringBuffer.append("=\"");
        }
        stringBuffer.append(this.uri);
        stringBuffer.append("\"");
        return stringBuffer.toString();
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof anl) {
            anl anl = (anl) obj;
            if (hashCode() == anl.hashCode()) {
                return this.uri.equals(anl.uri) && this.aRQ.equals(anl.aRQ);
            }
        }
        return false;
    }

    @Override // defpackage.anm, defpackage.aov
    public final String getText() {
        return this.uri;
    }

    public final int hashCode() {
        if (this.hashCode == 0) {
            int hashCode2 = this.uri.hashCode() ^ this.aRQ.hashCode();
            if (hashCode2 == 0) {
                hashCode2 = 47806;
            }
            this.hashCode = hashCode2;
        }
        return this.hashCode;
    }

    @Override // defpackage.aov
    public final String toString() {
        return super.toString() + " [Namespace: prefix " + this.aRQ + " mapped to URI \"" + this.uri + "\"]";
    }
}